import ajax from "./axios.config";
export const reqPwdLoginApi = (tel, password) =>
  ajax({ method: "post", url: "/user/login", data: { tel, password } });

export const reqMsgLoginApi = (tel, code) =>
  ajax({ method: "post", url: "/user/tellogin", data: { tel, code } });

export const sendMsgApi = (tel) =>
  ajax({ method: "post", url: "/user/sendsms", data: { tel } });

export const registerApi = (tel, password, code) =>
  ajax({
    method: "post",
    url: "/user/register",
    data: { tel, password, code },
  });
